<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" +
            request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/html"
      lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>新冠后台系统</title>
    <link rel="stylesheet" href="<%=basePath%>static/lib/layui/css/layui.css">
    <script type="text/javascript" src="<%=basePath%>static/js/jquery-2.1.1.min.js"></script>
    <script type="text/javascript" src="<%=basePath%>static/lib/layui/layui.js"></script>
    <script type="text/javascript" src="<%=basePath%>static/js/xadmin.js"></script>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">新冠后台系统</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="<%=basePath%>static/images/upload/${imgUrl}" class="layui-nav-img" id="nameImg">
                    ${userName}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;" target="right" onclick="x_admin_show('修改头像','./img-edit.jsp',350,350)">修改头像</a></dd>
                    <dd><a href="<%=basePath%>jsp/self-edit.jsp" target="right">安全设置</a></dd>
                    <dd><a href="<%=basePath%>jsp/login.jsp">退出登录</a></dd>
                </dl>
            </li>

        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                 <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">用户管理</a>
<%--                    <%=basePath%>jsp/queryAllUser--%>
                    <dl class="layui-nav-child">
                        <dd><a href="<%=basePath%>jsp/user-list.jsp" target="right">用户列表</a></dd>
                        <dd><a href="<%=basePath%>jsp/recover-user.jsp" target="right">恢复用户</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">疫情管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="<%=basePath%>jsp/user-count.jsp" target="right">疫情统计 </a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <!--        <div style="padding: 15px;">内容主体区域</div>-->
        <iframe scrolling="0" rameborder="0" src="shouye.jsp" name="right" width="100%" height="98.5%"></iframe>
    </div>

    <div class="layui-footer" style="text-align: center;height: 50px">
        <!-- 底部固定区域 -->
        <p>Copyright &copy; 2015-2017 chenchen 渝ICP备250号</p>
    </div>
</div>
<script th:src="@{layui/layui.js}" type="text/javascript"></script>
<script th:inline="javascript">
    //自动填充模块应该有的内容样式
    layui.use(['element', 'layer', 'util'], function(){
        var element = layui.element,layer = layui.layer,util = layui.util,$ = layui.$;
    });
    localStorage.setItem("userAccount","${userAccount}");
</script>
</body>
</html>